Skip to content

Add support for contentAccessDate-based expiry and cleanup using custom expiry period#345

Open
Rohan-cod-intouch wants to merge 3 commits intohyperoslo:masterfrom
Rohan-cod-intouch:master
Open

Add support for contentAccessDate-based expiry and cleanup using custom expiry period#345
Rohan-cod-intouch wants to merge 3 commits intohyperoslo:masterfrom
Rohan-cod-intouch:master

Conversation

@Rohan-cod-intouch
Copy link

This PR adds support for cache cleanup based on a custom expiry period using the file’s contentAccessDate.

  • Added a new removeExpiredObjects(expiryPeriod:) function.

  • This compares the current time with each file’s contentAccessDate (if available) or modificationDate as a fallback.

  • If the file hasn’t been accessed within the specified expiryPeriod, it is removed from the cache.

@3lvis
Copy link
Collaborator

3lvis commented Aug 30, 2025

Thanks @Rohan-cod-intouch but this project is in maintenance mode and adding more functionality is not in the current scope of the project.

All changes will be scoped to fix or improve existing APIs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants